<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
	<p>html-webpack-plugin</p>
	<p><%= JSON.stringify(htmlWebpackPlugin.files.chunks) %></p>
	<!-- 这是一行注释 -->
	<% if( htmlWebpackPlugin.files.chunks.main ) { %>
	<script>
	<%= compilation.assets[htmlWebpackPlugin.files.chunks.main.entry.substr(htmlWebpackPlugin.files.publicPath.length)].source() %>
	</script>
	<% } %>
	
	<% for(var key in htmlWebpackPlugin.files.chunks ){ %>
		<% if( key !== 'main') { %>
			<script type="text/javascript" src="<%= htmlWebpackPlugin.files.chunks[key].entry %>"></script>
		<% } %>
	<% } %>
</body>
</html>


